package cn.cdeden.knowledge.domain.dto;

//import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

//import javax.validation.constraints.NotBlank;
//import javax.validation.constraints.NotEmpty;
//import javax.validation.constraints.NotNull;

/**
 * @ProjectName : ecm_hou
 * @Package : com.cdyd.ecm.core.watermark.domain
 * @ClassName : FileWatermarkInfoDto
 * @Author : Yu.
 * @Description : // 水印 数据
 * @Date : 2023/1/11 16:03
 * @Version : 1.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FileWatermarkInfoDto {

//    @ApiModelProperty(value = "代码")
    @NotNull(message = "缺少必要的参数代码")
    @NotBlank(message = "代码,不能为null，或者只包含空格")
    @NotEmpty(message = "代码,不能为null或者长度为0")
    private String code ;


//    @ApiModelProperty(value = "值")
    @NotNull(message = "缺少必要的参数值")
    @NotBlank(message = "值,不能为null，或者只包含空格")
    @NotEmpty(message = "值,不能为null或者长度为0")
    private String value ;


//    @ApiModelProperty(value = "昵称")
//    @NotNull(message = "缺少必要的参数昵称")
    private String text;

//    @ApiModelProperty(value = "拼接")
    private String splice;


//    @ApiModelProperty(value = "排序")
    @NotNull(message = "文件总大小,不得为空")
    private Integer sort;

  public FileWatermarkInfoDto(String code){
      this.code = code;
      this.value = code;
      this.sort = 99;
      this.splice = "_";
  }



}
